setStrokeDashArray

abstract fun setStrokeDashArray(block: DesignBlock, dashArray: List<Float>)

Set a custom dash pattern for the given design block's stroke. Semantics match SVG's stroke-dasharray: alternating on/off lengths in design-unit space. When the pattern is non-empty it overrides the preset implied by StrokeStyle. Pass an empty list to fall back to the preset. Required scope: "stroke/change"

Parameters

block

the block whose stroke dash pattern should be set.

dashArray

alternating on/off lengths. Odd-length lists are doubled to an even length, matching SVG behaviour.